package com.tyk.bookstore.front.logistics.model.enume;


import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.front.common.core.model.enume.BaseEnum;

/**
 * @author tyk
 * @description 运单
 */
public enum WaybillState implements BaseEnum {
    ORDERED(0),
    WAREHOUSE_RECEIVED(1),
    DELIVERED(2),
    PICKED(3),
    TRANSPORTING(4),
    DISPATCHING(5),
    WAIT_PICK(6),
    SIGNED(7);

    @JsonValue
    private final Integer code;

    @Override
    public Integer value() {
        return this.code;
    }

    WaybillState(Integer code) {
        this.code = code;
    }
}
